<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    


 
       
/* var num = 0;
var total = 0;
while(num<=100){
total += num;
num += 2;
}
console.log(total)
 */
/*  var num = 1;
var total = 1;
while(num<=10){
total= total*num;
num++;
}
console.log(total)
 */

  
    
    
     
   /*   for( var i = 100;i<=999;i++){
        var a = parseInt(i/100)
     console.log(a)
    var b = parseInt(i % 100 / 10)
     console.log(b)
     var c = i % 10
     console.log(c)
     var n = 0
        if(a==b && b==c){
           n+=i
        }
     }
     console.log(n) */
   /*   var i = parseInt(prompt("请输入数字"));
     var a = i + (i*10+i) +(i*100+i*10+i)+(i*1000+i*100+i*10+i);
     console.log(a) */

   <!--  /*  var a = parseInt(prompt("请输入数字"));
     var total =0
     var num =""
     for(i=1;i<a;i++){
        total+=num
        total+=parseInt(sta)
     } */ -->
     <script>
   /*     
      var total = 0;
        var str = ""
        var unm = (prompt("请输入数字"));
        for(var i =0;i<4;i++){
            str+=unm
            total+=parseInt(str)
        }
        console.log(total) */
    </script>



    </script>
</body>
</html>